package com.iscale.model.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 腾讯地图 区域信息
 */
public class QQDistrictResult implements Serializable {

    /**
     * status : 0 message : query ok data_version : 20161122 result : [[{"id":"110000","name":"北京","fullname":"北京市","pinyin":["bei","jing"],"location":{"lat":39.90469,"lng":116.40717}},{"id":"120000","name":"天津","fullname":"天津市","pinyin":["tian","jin"],"location":{"lat":39.0851,"lng":117.19937}},{"id":"130000","name":"河北","fullname":"河北省","pinyin":["he","bei"],"location":{"lat":38.03599,"lng":114.46979}},{"id":"140000","name":"山西","fullname":"山西省","pinyin":["shan","xi"],"location":{"lat":37.87343,"lng":112.56272}},{"id":"150000","name":"内蒙古","fullname":"内蒙古自治区","pinyin":["nei","meng","gu"],"location":{"lat":40.81733,"lng":111.76522}},{"id":"210000","name":"辽宁","fullname":"辽宁省","pinyin":["liao","ning"],"location":{"lat":41.83571,"lng":123.42925}},{"id":"220000","name":"吉林","fullname":"吉林省","pinyin":["ji","lin"],"location":{"lat":43.89616,"lng":125.3268}},{"id":"230000","name":"黑龙江","fullname":"黑龙江省","pinyin":["hei","long","jiang"],"location":{"lat":45.74208,"lng":126.66285}},{"id":"310000","name":"上海","fullname":"上海市","pinyin":["shang","hai"],"location":{"lat":31.23037,"lng":121.4737}},{"id":"320000","name":"江苏","fullname":"江苏省","pinyin":["jiang","su"],"location":{"lat":32.06071,"lng":118.76295}},{"id":"330000","name":"浙江","fullname":"浙江省","pinyin":["zhe","jiang"],"location":{"lat":30.26555,"lng":120.1536}},{"id":"340000","name":"安徽","fullname":"安徽省","pinyin":["an","hui"],"location":{"lat":31.86157,"lng":117.28565}},{"id":"350000","name":"福建","fullname":"福建省","pinyin":["fu","jian"],"location":{"lat":26.09982,"lng":119.29659}},{"id":"360000","name":"江西","fullname":"江西省","pinyin":["jiang","xi"],"location":{"lat":28.67417,"lng":115.91004}},{"id":"370000","name":"山东","fullname":"山东省","pinyin":["shan","dong"],"location":{"lat":36.66825,"lng":117.02058}},{"id":"410000","name":"河南","fullname":"河南省","pinyin":["he","nan"],"location":{"lat":34.76571,"lng":113.75322}},{"id":"420000","name":"湖北","fullname":"湖北省","pinyin":["hu","bei"],"location":{"lat":30.54539,"lng":114.34234}},{"id":"430000","name":"湖南","fullname":"湖南省","pinyin":["hu","nan"],"location":{"lat":28.11266,"lng":112.9834}},{"id":"440000","name":"广东","fullname":"广东省","pinyin":["guang","dong"],"location":{"lat":23.13171,"lng":113.26627}},{"id":"450000","name":"广西","fullname":"广西壮族自治区","pinyin":["guang","xi"],"location":{"lat":22.81521,"lng":108.32754}},{"id":"460000","name":"海南","fullname":"海南省","pinyin":["hai","nan"],"location":{"lat":20.01997,"lng":110.34863}},{"id":"500000","name":"重庆","fullname":"重庆市","pinyin":["chong","qing"],"location":{"lat":29.56471,"lng":106.55073}},{"id":"510000","name":"四川","fullname":"四川省","pinyin":["si","chuan"],"location":{"lat":30.65089,"lng":104.07572}},{"id":"520000","name":"贵州","fullname":"贵州省","pinyin":["gui","zhou"],"location":{"lat":26.5982,"lng":106.70722}},{"id":"530000","name":"云南","fullname":"云南省","pinyin":["yun","nan"],"location":{"lat":25.0453,"lng":102.70973}},{"id":"540000","name":"西藏","fullname":"西藏自治区","pinyin":["xi","zang"],"location":{"lat":29.64725,"lng":91.11748}},{"id":"610000","name":"陕西","fullname":"陕西省","pinyin":["shan","xi"],"location":{"lat":34.26486,"lng":108.95424}},{"id":"620000","name":"甘肃","fullname":"甘肃省","pinyin":["gan","su"],"location":{"lat":36.05942,"lng":103.82634}},{"id":"630000","name":"青海","fullname":"青海省","pinyin":["qing","hai"],"location":{"lat":36.62087,"lng":101.78011}},{"id":"640000","name":"宁夏","fullname":"宁夏回族自治区","pinyin":["ning","xia"],"location":{"lat":38.47117,"lng":106.25867}},{"id":"650000","name":"新疆","fullname":"新疆维吾尔自治区","pinyin":["xin","jiang"],"location":{"lat":43.79343,"lng":87.6271}},{"id":"710000","name":"台湾","fullname":"台湾","pinyin":["tai","wan"],"location":{"lat":25.040021,"lng":121.512286}},{"id":"810000","name":"香港","fullname":"香港特别行政区","pinyin":["xiang","gang"],"location":{"lat":22.27534,"lng":114.16546}},{"id":"820000","name":"澳门","fullname":"澳门特别行政区","pinyin":["ao","men"],"location":{"lat":22.18684,"lng":113.54294}}]]
     */

    private int status;
    private String message;
    private String data_version;
    private List<List<ResultBean>> result;

    @Override
    public String toString() {
        return "QQDistrictResult{" +
                "status=" + status +
                ", message='" + message + '\'' +
                ", data_version='" + data_version + '\'' +
                ", result=" + result +
                '}';
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getData_version() {
        return data_version;
    }

    public void setData_version(String data_version) {
        this.data_version = data_version;
    }

    public List<List<ResultBean>> getResult() {
        return result;
    }

    public void setResult(List<List<ResultBean>> result) {
        this.result = result;
    }

    public static class ResultBean implements Serializable {
        /**
         * id : 110000
         * name : 北京
         * fullname : 北京市
         * pinyin : ["bei","jing"]
         * location : {"lat":39.90469,"lng":116.40717}
         * cidx 子级行政区划在下级数组中的下标位置
         */

        private String id;
        private String name;
        private String fullname;
        private LocationBean location;
        private List<String> pinyin;
        private List<Integer> cidx;
        private String pid;

        @Override
        public String toString() {
            return "ResultBean{" +
                    "id='" + id + '\'' +
                    ", name='" + name + '\'' +
                    ", fullname='" + fullname + '\'' +
                    ", location=" + location +
                    ", pinyin=" + pinyin +
                    '}';
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFullname() {
            return fullname;
        }

        public void setFullname(String fullname) {
            this.fullname = fullname;
        }

        public LocationBean getLocation() {
            return location;
        }

        public void setLocation(LocationBean location) {
            this.location = location;
        }

        public List<String> getPinyin() {
            return pinyin;
        }

        public void setPinyin(List<String> pinyin) {
            this.pinyin = pinyin;
        }

        public List<Integer> getCidx() {
            return cidx;
        }

        public void setCidx(List<Integer> cidx) {
            this.cidx = cidx;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public static class LocationBean implements Serializable {
            /**
             * lat : 39.90469
             * lng : 116.40717
             */

            private double lat;
            private double lng;

            public double getLat() {
                return lat;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public double getLng() {
                return lng;
            }

            public void setLng(double lng) {
                this.lng = lng;
            }

            @Override
            public String toString() {
                return "LocationBean{" +
                        "lat=" + lat +
                        ", lng=" + lng +
                        '}';
            }
        }
    }
}
